package com.qidianit.mes.pro.service;

import com.github.pagehelper.PageInfo;
import com.qidianit.mes.pojo.Result;
import com.qidianit.mes.pojo.pro.Workflow;
import com.qidianit.mes.pro.vo.WorkflowProcessByProduct;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Description:
 * @Author: shanzhe
 * @Date: 2025/9/18 - 13:53
 */
public interface WorkFlowService {

    PageInfo<WorkflowProcessByProduct> queryWorkflowProcessByProduct(@Param("id") Integer id,
                                                                     @Param("productionId") Integer productionId);

    PageInfo<Workflow> queryWorkFlowListByManyTags(Integer page,
                                                           Integer size,
                                                           String workflowCode,
                                                           String workflowName,
                                                           Integer status);

    Workflow queryWorkFlowByCode(String workflowCode);

    int addWorkFlow(Workflow workflow);

    int updateWorkFlow(Workflow workflow);

    int deleteWorkFlow(Integer id);

    int deleteWorkFlowByListIds(@Param("ids") List<Integer> ids);
}
